<?php
namespace app\model;

use think\Model;

class Comment extends Model
{
    protected $table = 'pub_comment';
    protected $autoWriteTimestamp = true;
    protected $createTime = 'time';
    protected $updateTime = false;

    # 友情链接
    // public static function getCommonts ()
    // {
    //     $result = self::alias('l')->leftjoin(['so_user'=>'u'],'l.uid = u.uid')->field(['l.cid','l.name','l.comment','u.nick','u.hport','u.autograph'])
    //     ->order('l.link_order asc')->select();
    //     if(!empty($result))
    //         return $result->toArray();
    //     return '';
    // }

}
